﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoccerSimulator5000
{
    public class StandingsData
    {
        public int gamesPlayed { get; set; }
        public int gamesWon { get; set; }
        public int gamesDrawn { get; set; }
        public int gamesLost { get; set; }
        public int goalsFor { get; set; }
        public int goalsAgainst { get; set; }
        public int goalsDiff { get; set; }
        public int points { get; set; }
        public int position { get; set; }


        public StandingsData()
        {
            //gamesPlayed = 0;
            //gamesWon = 0;
            //gamesDrawn = 0;
            //gamesLost = 0;

            //goalsFor = 0;
            //goalsAgainst = 0;
            //goalsDiff = 0;
            //points = 0;
        }

        public void UpdateData()
        {
            goalsDiff = goalsFor - goalsAgainst;
            points = (gamesWon * 3) + gamesDrawn;
        }


    }
}
